<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

Route::get('think', function () {
    return 'hello,ThinkPHP5!';
});

Route::get('video', 'index/video');
Route::get('image', 'index/image');
Route::get('get_image', 'index/get_image');

// rpc 路由  // rule post
Route::rule('api/s', function (Request $request) {
    $server = new \app\rpc\service();
    //开启服务
    $server->init();   
});

return [

];
